package com.ruoyi.common.utils;

public class LoginTypeThreadLocal {
    private static final ThreadLocal<Boolean> captchaLoginContext = new ThreadLocal<>();

    public static void setCaptchaLogin() {
        captchaLoginContext.set(true);
    }

    public static boolean isCaptchaLogin() {
        return Boolean.TRUE.equals(captchaLoginContext.get());
    }

    public static void clearContext() {
        captchaLoginContext.remove();
    }
}
